Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): should not set the access cache in the data-fn #3299

Merged
merged 1 commit into from
Mar 25, 2021
Merged

fix(runtime-core): should not set the access cache in the data-fn #3299

merged 1 commit into from
Mar 25, 2021

Conversation

HcySunYang
Copy link
Member

Fix: #3297

test('should not set the access cache in the data() function (production mode)', () => {
const Comp = {
data() {
;(this as any).foo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the ; needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, just my habit

@HcySunYang HcySunYang added the 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. label Mar 19, 2021
@yyx990803 yyx990803 merged commit 6e88156 into vuejs:master Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Component does not render in prod but does in debug, no errors or warnings
4 participants